<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
      <title>GTL - Graph Template Library: algorithm.h Source File</title>
      <link href="doxygen.css" rel="stylesheet" type="text/css">
  </head>
  <body>
    <p class="links">  
      <a href="../index.html">Home</a> |
      Documentation |
      <a href="../register.html">Download</a> |
      <a href="../platforms.html">Platforms</a> |
      <a href="../refer.html">Projects</a> |      
      <a href="../lists.html">Mailing Lists</a> |
      <a href="../history.html">Version History</a>
    </p>

<!-- Generated by Doxygen 1.5.3 -->
<div class="tabs">
  <ul>
    <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
    <li><a href="classes.html"><span>Classes</span></a></li>
    <li class="current"><a href="files.html"><span>Files</span></a></li>
    <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
  </ul>
</div>
<h1>algorithm.h</h1><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">//==========================================================================</span>
<a name="l00002"></a>00002 <span class="comment">//</span>
<a name="l00003"></a>00003 <span class="comment">//   algorithm.h </span>
<a name="l00004"></a>00004 <span class="comment">//</span>
<a name="l00005"></a>00005 <span class="comment">//==========================================================================</span>
<a name="l00006"></a>00006 <span class="comment">// $Id: algorithm.h,v 1.14 2003/03/24 15:58:54 raitner Exp $</span>
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 <span class="preprocessor">#ifndef GTL_ALGORITHM_H</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="preprocessor">#define GTL_ALGORITHM_H</span>
<a name="l00010"></a>00010 <span class="preprocessor"></span>
<a name="l00011"></a>00011 <span class="preprocessor">#include &lt;GTL/GTL.h&gt;</span>
<a name="l00012"></a>00012 <span class="preprocessor">#include &lt;GTL/graph.h&gt;</span>
<a name="l00013"></a>00013 
<a name="l00014"></a>00014 __GTL_BEGIN_NAMESPACE
<a name="l00015"></a>00015 
<a name="l00022"></a><a class="code" href="a00001.html">00022</a> <span class="keyword">class </span>GTL_EXTERN <a class="code" href="a00001.html" title="Abstract baseclass for all algoritm-classes.">algorithm</a> {
<a name="l00023"></a>00023 <span class="keyword">public</span>:
<a name="l00039"></a>00039     <span class="keyword">enum</span> {
<a name="l00040"></a><a class="code" href="a00001.html#f1a0078e153aa99c24f9bdf0d97f67105114c20e4a96a76b5de9f28bf15e282b">00040</a>         GTL_OK = 1,
<a name="l00041"></a><a class="code" href="a00001.html#f1a0078e153aa99c24f9bdf0d97f67106fcf574690bbd6cf710837a169510dd7">00041</a>         GTL_ERROR = 0
<a name="l00042"></a>00042     };
<a name="l00043"></a>00043 
<a name="l00047"></a><a class="code" href="a00001.html#b79e1ddec2f2afdf4b36b10724db8b15">00047</a>     <a class="code" href="a00001.html" title="Abstract baseclass for all algoritm-classes.">algorithm</a> () { };
<a name="l00048"></a>00048     
<a name="l00052"></a><a class="code" href="a00001.html#dca9b1e7fa3afd914519a9dbb44e9fd5">00052</a>     <span class="keyword">virtual</span> ~<a class="code" href="a00001.html" title="Abstract baseclass for all algoritm-classes.">algorithm</a> () { };    
<a name="l00053"></a>00053 
<a name="l00061"></a>00061     <span class="keyword">virtual</span> <span class="keywordtype">int</span> run (<a class="code" href="a00014.html" title="A directed or undirected graph.">graph</a>&amp; g) = 0;
<a name="l00062"></a>00062     
<a name="l00074"></a>00074     <span class="keyword">virtual</span> <span class="keywordtype">int</span> check (<a class="code" href="a00014.html" title="A directed or undirected graph.">graph</a>&amp; g) = 0;
<a name="l00075"></a>00075     
<a name="l00084"></a>00084     <span class="keyword">virtual</span> <span class="keywordtype">void</span> reset () = 0;
<a name="l00085"></a>00085 };
<a name="l00086"></a>00086 
<a name="l00087"></a>00087 __GTL_END_NAMESPACE
<a name="l00088"></a>00088 
<a name="l00089"></a>00089 <span class="preprocessor">#endif // GTL_ALGORITHM_H</span>
<a name="l00090"></a>00090 <span class="preprocessor"></span>
<a name="l00091"></a>00091 <span class="comment">//--------------------------------------------------------------------------</span>
<a name="l00092"></a>00092 <span class="comment">//   end of file</span>
<a name="l00093"></a>00093 <span class="comment">//--------------------------------------------------------------------------</span>
</pre></div>    <p class="links">
      <a href="http://www.uni-passau.de/">University of Passau</a>
      &nbsp;-&nbsp;
      <a href="http://www.fmi.uni-passau.de/">FMI</a>
      &nbsp;-&nbsp;
      <a href="http://www.fmi.uni-passau.de/fmi/lehrstuehle/brandenburg/">Theoretical
	Computer Science</a>
    </p>
  <div class="copyright">
      Design &copy; 2002, 2003 <a href="mailto:raitner@fmi.uni-passau.de">Marcus Raitner</a>,  University of Passau 
  </div>
</body>
</html>
